package com.geeklan.smart.ui.dialog;

import android.content.Context;
import android.view.LayoutInflater;

import androidx.annotation.NonNull;

import com.geeklan.smart.databinding.DialogContentEdittextBinding;

public class EditTextAlertDialog extends BaseAlertDialog<DialogContentEdittextBinding> {

    public EditTextAlertDialog(@NonNull Context context,String title) {
        super(context);
        setTitle(title);
        setTopCloseButtonVisibility(true);
    }

    public String getContentText(){
        return mBinding.edittext.getText().toString();
    }

    @Override
    protected DialogContentEdittextBinding getContentViewBinding(LayoutInflater inflater) {
        return DialogContentEdittextBinding.inflate(inflater);
    }

    public void setHint(String hint){
        mBinding.edittext.setHint(hint);
    }
}
